const { env } = require('./env')
const UPLOAD_PATH = env === 'dev' ? 'G:\\HTML\\xiaoChenbook\\admin-upload-ebook': 'root/upload/admin-upload-ebook';

const UPLOAD_URL = env === 'dev' ? 'http://localhost:8089/admin-upload-ebook':'' // TODO 

const OLD_UPLOAD_URL = env === 'dev' ? 'http://localhost:8089/book/res/img':'' // TODO 

module.exports= {
    CODE_ERROR: -1,
    CODE_SUCCESS: 0,
    CODE_TOKEN_EXPIRED: -2,
    debug:true,
    PWD_SALT: 'admin_imooc_node',
    PRIVATE_KEY: 'admin_imooc_node_test_youbaobao_xyz',
    JWT_EXPIRED: 60 * 60 * 24, // token失效时间
    UPLOAD_PATH,
    MIME_TYPE_EPUB: 'application/epub+zip',
    UPLOAD_URL,
    OLD_UPLOAD_URL
}